<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>填写商品详情_<?=SITE_NAME?>_<?=$scfg['base']['title']?></title>
<meta name="keywords" content="<?=$scfg['base']['keywords']?>" />
<meta name="description" content="<?=$scfg['base']['description']?>" />
<script type="text/javascript">
//try{document.domain="<?=SITE_DOMAIN?>";}catch (e){};
var __scfg__ = {
	staticUrl:"<?=surl::get("static");?>",
	thisPage:"my_sell"
};
</script>
<script type="text/javascript" src="<?=surl::get("static");?>www.js"></script>
<script type="text/javascript" src="<?=surl::get('my')?>area.js.php"></script>
<script type="text/javascript">
var img_zoom = function ($w,$h,$sw,$sh)
{
	var $rw,$rh,$ratio;
	if($sw && $w > $sw)
	{ 
	   $wr 	= $sw/$w; 
	   $rw	= true; 
	} 
	if($sh && $h > $sh)
	{ 
	   $hr = $sh/$h; 
	   $rh = true; 
	}
	if($rw && $rh)
	{ 
	   $ratio =($wr < $hr)?$wr:$hr;
	}else if($rw)
	{ 
	   $ratio = $wr; 
	}else if($rh)
	{ 
	   $ratio = $hr; 
	}else
	{
		return {w:$w,h:$h};
	}
	return {w:$w * $ratio,h:$h * $ratio};
}
function changePics(value)
{
	document.getElementById('previewImage').innerHTML = '<img src="'+value+'" width="150" height="150" onload="var wf = img_zoom(this.width,this.height,150,150);this.width=wf.w;this.height=wf.h;" align="absmiddle">';
}
function chk(o)
{
	if(XypForm(o))
	{
		_.e('submitBtn').disabled=true;
		return true;
	}else
	{
		return false;
	}
};
function Init_upload()
{
	var form = Form,k,d,t;
	var CurSelect= form.elements['gLocationExt_1'];
	for(k in areas)
	{
		d = areas[k][0];
		SelectOption = new Option(d[0],d[1]);
		CurSelect.options[CurSelect.options.length] = SelectOption;
	}
}
if(typeof XypForm == "undefined")
{
	include.js(__scfg__.staticUrl+"xypfrom/xypfrom.js");
	include.css(__scfg__.staticUrl+"xypfrom/xypfrom.css");
};
var ioc = function(o,o2,require)
{
	var t,i,len=o.length,len2=o2.length;
	for(i=0;i<len;i++)
	{
		t = Form[o[i]];
		t.disabled=false;
		t.style.backgroundColor='#FFFFFF';
		if(require)t.setAttribute('require',1);
	}
	for(i=0;i<len2;i++)
	{
		t = Form[o2[i]];
		t.disabled=true;
		t.style.backgroundColor='lightgrey';
		if(require)t.removeAttribute('require');
	}
};
</script>
</head>
<body>
<? tpl::import('my/header.my.tpl.php');?>
<div id="Main">
  <div class="step">
    <ul style="width:420px;margin:0 auto;">
      <li class="stepFore"><span>1</span>选择出售方式</li>
      <li class="stepFore"><span>2</span>选择商品分类</li>
      <li class="stepHere"><span>3</span>填写商品详情</li>
    </ul>
  </div>
  <div id="w760">
    <!---->
	<?=($cSellType == 2?'<div id="note_drift">':'<div id="note">')?>
    	<div>
        	发布您的商品请先阅读，
            <a href="<?=$scfg['help']['gugao_estopsell']?>" target="_blank">禁止交易和限制交易的物品规则</a>，
            <a href="<?=$scfg['help']['gugao_to_duplicate']?>"  target="_blank">重复发布商品处理规则</a>。<br>
            <? if(empty($infoChk)){?>
        	您还没有"账户设定提醒"中的必要设置，发布的商品将会保存到仓库中，买家看不到。<a href="<?=surl::get("my")."index.php";?>">马上设置>> </a> 
        	<? }?>
        </div>
    </div>    
    <form name="form1" method="post" enctype="multipart/form-data" action="<?=surl::get('my')?>act.php" id="form1" onsubmit="return chk(this);" target="_top">
      <input type="hidden" name="id" 		value="<?=$id?>">
      <input type="hidden" name="infoChk" 	value="<?=$infoChk?>">      
      <input type="hidden" name="Pact" 		value="<?=$Pact?>" />
      <input type="hidden" name="cSellType" value="<?=$cSellType?>">
      <input type="hidden" name="c1id" 		value="<?=$catIdArr['c1id']?>">
      <input type="hidden" name="c2id" 		value="<?=$catIdArr['c2id']?>">
      <input type="hidden" name="c3id" 		value="<?=$catIdArr['c3id']?>">
      <input type="hidden" name="c4id" 		value="<?=$catIdArr['c4id']?>">
      
      <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="140" class="td_01">商品信息编辑</td>
          <td colspan="2" class="td_01">　</td>
        </tr>
        <? if($Pact == "modifyGoodsInfo"){
			$cSellTypeGet = $_GET;
			$cSellTypeGet["cSellType"] = $cSellType==1?2:1;		
		?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 出售方式：</td>
          <td class="td_03" colspan="2" ><b><?=pct::cSellType($cSellType)?></b>
            <a href="<?=surl::en(surl::get('my')."sell.php",$cSellTypeGet)?>"> [把出售方式改为<b><?=pct::cSellType($cSellTypeGet["cSellType"])?></b>] </a> </td>
        </tr>
        <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 商品类目：</td>
          <td class="td_03" colspan="2" ><?=implode(" >> ",$catNameArr)?>
            >> <a href="<?=surl::en(surl::get('my')."sell.php?step=cats&cSellType=1&id=".$id,$catIdArr)?>"> [更改类目] </a> </td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 商品名称：</td>
          <td class="td_03"><input name="sTitle" value="<?=$rs["sTitle"]?>" id="sTitle" require="1" minlen="3" maxlen="60"  msg="商品名称必须在[3～60]个字节之内,一个中文是两个字节" type="text" maxlength="60" size="60">
            <br />
            商品标题请限定在30个汉字内（60个字符）。<a href="<?=$scfg['help']['help_goods_subject']?>" target="_blank">怎样给商品拟个好标题？</a> </td>
          <td rowspan="2" align="center" class="td_03"><div id="previewImage"></div></td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 图片上传：</td>
          <td class="td_03">
          	<?=($Pact == "modifyGoodsInfo"?'<span class="orange">注：不上传图档时，将保留原有图档</span><br />':"")?>
          	<input name="photo" id ="photo" require="1" type="file" msg="请选择要上传的商品图片，现暂时只支持*.jpg,*.gif图片文件" accept="jpg|gif" onchange="changePics(this.value);" size="36"><br />
            有图片的商品最受欢迎！图片限定120k内，jpg或gif格式，请确保图片在<br />
            浏览器中可以正常打开。<a href="<?=$scfg['help']['help_good_image']?>" target="_blank">如何在商品描述里插入图片，需要注意些什么？</a> </td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		   		$img = pct::img($id);
		?>
        	<script type="text/javascript">
			$(function(){
				Form.photo.removeAttribute('require');
				changePics('<?=$img[1]?>');
			});
			</script>           
        <? }?>
      </table>
      <table width="760" height="415" border="0" align="center" cellpadding="0" cellspacing="0" id="table1">
        <tr>
          <td width="143" valign="top" class="td_02" style="padding-top:20px"><span class="fontOrange">*</span> 商品描述：</td>
          <td class="td_03" id="EditorType" >
          <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
          <textarea name="sDesc" id="sDesc"><?=$rs["sDesc"]?></textarea>
		  <script type="text/javascript">
		  var oFCKeditor = new FCKeditor( 'sDesc' ) ;
		  //oFCKeditor.BasePath	= sBasePath ;
		  oFCKeditor.ReplaceTextarea() ;
		  	/*var sDesc = <? //json::encode($rs["sDesc"])?>;
		  	if(jQuery.browser.msie)
			{
				document.write('<textarea name="sDesc" id="sDesc" style="display:none">'+(sDesc||'')+'</textarea>');
				document.write('<iframe ID="Editor" name="Editor" src="/editors/edit.htm?id=sDesc" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:320px;width:100%"></iframe>');
				document.write('在线编辑器仅支持IE5.5及以上版本，如果看不到在线编辑器，<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6&amp;displaylang=zh-cn" target="_blank">请点击升级浏览器</a>。');
			}else
			{
				document.write('<textarea name="sDesc" id="sDesc" require="1"  minlen="3" maxlen="50000"  msg="商品详细描述必须在[3～50000]个字符之内,一个中文是两个字符!" style="height:320px; width:100%">'+(sDesc||'')+'</textarea>');
			}*/
		  </script>
          </td>
        </tr>
      </table>
      <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="140" class="td_01">商品基本信息</td>
          <td colspan="3" class="td_01">　</td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 商品数量：</td>
          <td width="361" class="td_03"><input name="dwNum" type="text"  value="<?=$rs["dwNum"]?>" size="8" class="ime" require="1" dataType="nums" msg="商品数量必须是数字">
            件</td>
          <td width="84"  class="td_02">有效期：</td>
          <td width="175" class="td_03">
            <select name="dwValidDuration" class="select_span">
              <option value="7" selected="selected">7</option>
              <option value="14">14</option>
            </select>
            天 </td>
        </tr>
        <? if($Pact == "modifyGoodsInfo" && $rs["dwValidDuration"])
		   {
		?>
        	<script type="text/javascript">
			$(function(){
				Form.dwValidDuration.value = <?=$rs["dwValidDuration"]?>;
			})
			</script>           
        <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 所 在 地：</td>
          <td class="td_03">
		  <span>
		    <input  name="gLocation" value="0" <?=(!$rs['gLocation']?'checked="checked" ':'')?> onclick="ioc(['gLocationExt_1'],['gLocationExt_2'],1);" type="radio" />
            台灣
            <select name="gLocationExt_1">
              <option value="" selected="selected">--選擇縣市--</option>
            </select>
		  </span><br />
		  <span>
            <input  name="gLocation" value="1" <?=($rs['gLocation']?'checked="checked" ':'')?> onclick="ioc(['gLocationExt_2'],['gLocationExt_1'],1);" type="radio"/>
            其他地區
            <input maxlength="20" minlen="4" maxlen="20"  name="gLocationExt_2"/>
            (10個中文字以內) 
		  </span>
		  </td>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
			    Init_upload();
				<?=($rs['gLocation']?"ioc(['gLocationExt_2'],['gLocationExt_1'],1);":"ioc(['gLocationExt_1'],['gLocationExt_2'],1);")?>
				Form.gLocationExt_1.value = <?=json::encode($rs["gLocationExt"])?>;
				Form.gLocationExt_2.value = <?=json::encode($rs["gLocationExt"])?>;
			});
			</script>           
	   <? }?>
          <td class="td_02">发  票：</td>
          <td class="td_03">
            <input name="cInvoiceType" <?=($Pact == "modifyGoodsInfo"&& $rs['cInvoiceType']?'checked="checked" ':'')?> type="radio" value="1"  require="1" msg="请选定商品的发票有无" >
            有
            <input name="cInvoiceType" <?=($Pact == "modifyGoodsInfo"&&!$rs['cInvoiceType']?'checked="checked" ':'')?> type="radio" value="0">
            无 </td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 新旧程度：</td>
          <td class="td_03">
            <input name="cNewType" type="radio" <?=($rs['cNewType']==1?'checked="checked" ':'')?> value="1" require="1"  msg="请选定商品的新旧程度"  />
            全新
            <input name="cNewType" type="radio" <?=($rs['cNewType']==2?'checked="checked" ':'')?> value="2" />
            二手
            <input name="cNewType" type="radio" <?=($rs['cNewType']==4?'checked="checked" ':'')?> value="4"/>
            陈列品</td>
          <td class="td_02">保  修：</td>
          <td class="td_03">
            <input name="cRepairType" <?=($Pact == "modifyGoodsInfo"&& $rs['cRepairType']?'checked="checked" ':'')?> type="radio" value="1"   require="1" msg="请选定商品的保修情况"  />
            有
            <input name="cRepairType" <?=($Pact == "modifyGoodsInfo"&&!$rs['cRepairType']?'checked="checked" ':'')?> type="radio" value="0" />
            无 </td>
        </tr>
        <tr>
          <td class="td_02">特別醒目標籤：</td>
          <td colspan="3" class="td_03">
		    <input type="checkbox" value="HAND" name="gFlag[]" <?=(strstr($rs['gFlag'],"HAND")?'checked="checked" ':'')?> require="1" min="0" max="3" />
            手工製品
            <input type="checkbox" value="SPSIZE" name="gFlag[]" <?=(strstr($rs['gFlag'],"SPSIZE")?'checked="checked" ':'')?> />
            特殊尺寸
            <input type="checkbox" value="LIMIT" name="gFlag[]" <?=(strstr($rs['gFlag'],"LIMIT")?'checked="checked" ':'')?> />
            限量商品
            <input type="checkbox" value="IDENT" name="gFlag[]" <?=(strstr($rs['gFlag'],"IDENT")?'checked="checked" ':'')?> />
            附鑑定書
            <input type="checkbox" value="BOOKS" name="gFlag[]" <?=(strstr($rs['gFlag'],"BOOKS")?'checked="checked" ':'')?> />
            附保證書
            <input type="checkbox" value="STORE" name="gFlag[]" <?=(strstr($rs['gFlag'],"STORE")?'checked="checked" ':'')?> />
            店面保證
            <input type="checkbox" value="COMPANY" name="gFlag[]" <?=(strstr($rs['gFlag'],"COMPANY")?'checked="checked" ':'')?> />
            公司貨
            <input type="checkbox" value="GIFT" name="gFlag[]" <?=(strstr($rs['gFlag'],"GIFT")?'checked="checked" ':'')?> />
            適合送禮
            <input type="checkbox" value="OFF50" name="gFlag[]" <?=(strstr($rs['gFlag'],"OFF50")?'checked="checked" ':'')?> />
            低於五折</td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 自定义分类：</td>
          <td colspan="3" class="td_03">
		    <select name="sShopClassid" require="1">
              <option selected="selected" value="0">默认分类</option>
              <? foreach($shop_class as &$v){?>
              <option value="<?=$v["cid"]?>"><?=$v["className"]?></option>
              <? }?>
            </select></td>
        </tr>
         <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
			    Form.sShopClassid.value = <?=$rs["sShopClassid"]?>;
			});
			</script>           
	   <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 上架时间：</td>
          <td colspan="3" class="td_03">
		  	<input type="radio" name="uploadDate" value="0" <?=(($Pact == "modifyGoodsInfo"&&!$rs['uploadDate']) || !$infoChk?'checked="checked" ':'')?> require="1" />
            <label for="radiobutton">暂放入库存</label>
            <? if($infoChk){?>
		    <input type="radio" name="uploadDate" value="1" <?=($Pact == "modifyGoodsInfo" &&$rs['uploadDate']==1			?'checked="checked" ':'')?> checked="checked" />
            <label for="radiobutton">马上</label>
            <? }?>
          </td>
        </tr>
        
      </table>
      <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr>
          <td width="149" class="td_01">交易条件</td>
          <td colspan="2" class="td_01">　</td>
        </tr>
        <tr>
          <td class="td_02">買家資格限制：</td>
          <td colspan="2" class="td_03">
		    <input type="radio" <?=(!$rs['gBuyerLimit']?'checked="checked" ':'')?> onclick="ioc([],['gBuyerLimitValue'],1);"  value="0" name="gBuyerLimit"/>
            沒有限制
            <input type="radio" <?=( $rs['gBuyerLimit']?'checked="checked" ':'')?> onclick="ioc(['gBuyerLimitValue'],[],1);"  value="1"  name="gBuyerLimit" />
            有限制評價分數
            <select name="gBuyerLimitValue">
              <option value="0" selected="selected">0</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
            </select>
            分以上 </td>
        </tr>
         <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				<?=( $rs['gBuyerLimit']?"ioc(['gBuyerLimitValue'],[],1);":"ioc([],['gBuyerLimitValue'],1);")?>
				Form.gBuyerLimit.value = <?=json::encode($rs["gBuyerLimit"])?>;
			});
			</script>           
	    <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 交易方式：</td>
          <td colspan="2" class="td_03">
            <input type="checkbox" name="cSendType[]" value = "1" <?=(strstr($rs['cSendType'],"1")?'checked="checked" ':'')?>  require="1">
            款到发货&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            （支持银行转帐、邮局汇款等）<br />
            <input type="checkbox" name="cSendType[]" value = "2" <?=(strstr($rs['cSendType'],"2")?'checked="checked" ':'')?> />
            货到付款&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            （支持物流公司代收货款）<br />
            <input type="checkbox" name="cSendType[]" value = "4" <?=(strstr($rs['cSendType'],"4")?'checked="checked" ':'')?> />
            其他付款方式  （可以在商品详情描述约定，例如上门自取，见面交易等） <br />
          </td>
        </tr>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 付款方式：</td>
          <td colspan="2" class="td_03">
		    <input type="checkbox" value="cash" name="gPayWay[]" <?=(strstr($rs['gPayWay'],"cash")?'checked="checked" ':'')?>  require="1" />
            接受現金
            <input type="checkbox" value="atm" name="gPayWay[]" <?=(strstr($rs['gPayWay'],"atm")?'checked="checked" ':'')?> />
            ATM轉帳
            <input type="checkbox" value="check" name="gPayWay[]" <?=(strstr($rs['gPayWay'],"check")?'checked="checked" ':'')?> />
            接受支票或匯款
            <input type="checkbox" value="credit" name="gPayWay[]" <?=(strstr($rs['gPayWay'],"credit")?'checked="checked" ':'')?> />
            接受信用卡
            <input type="checkbox" value="other" name="gPayWay[]" <?=(strstr($rs['gPayWay'],"other")?'checked="checked" ':'')?> onclick="if(this.checked){ioc(['gPayWayExt'],[],1);}else{ioc([],['gPayWayExt'],1);}" />
            其他<br />
            其他付款方式:
            <input name="gPayWayExt" type="text" size="40" maxlength="40">
            (10個中文字以內)</td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				<?=(strstr($rs['gPayWay'],"other")?"ioc(['gPayWayExt'],[],1);":"ioc([],['gPayWayExt'],1);")?>
				Form.gPayWayExt.value = <?=json::encode($rs["gPayWayExt"])?>;
			});
			</script>           
	   <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 交貨方式：</td>
          <td colspan="2" class="td_03">
		    <input type="checkbox" value="post" name="gDeliverWay[]" <?=(strstr($rs['gDeliverWay'],"post")?'checked="checked" ':'')?> require="1" />
            郵寄
            <input type="checkbox" value="house" name="gDeliverWay[]" <?=(strstr($rs['gDeliverWay'],"house")?'checked="checked" ':'')?> />
            宅配
            <input type="checkbox" value="express" name="gDeliverWay[]" <?=(strstr($rs['gDeliverWay'],"express")?'checked="checked" ':'')?> />
            快遞
            <input type="checkbox" value="fremdness" name="gDeliverWay[]" <?=(strstr($rs['gDeliverWay'],"fremdness")?'checked="checked" ':'')?> />
            接受運送國外
            <input type="checkbox" value="other" name="gDeliverWay[]" <?=(strstr($rs['gDeliverWay'],"other")?'checked="checked" ':'')?> onclick="if(this.checked){ioc(['gDeliverWayExt'],[],1);}else{ioc([],['gDeliverWayExt'],1);}" />
            其他<br />
            其交貨方式:
            <input name="gDeliverWayExt" type="text" size="40" maxlength="40">
            (10個中文字以內)</td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				<?=(strstr($rs['gDeliverWay'],"other")?"ioc(['gDeliverWayExt'],[],1);":"ioc([],['gDeliverWayExt'],1);")?>
				Form.gDeliverWayExt.value = <?=json::encode($rs["gDeliverWayExt"])?>;
			});
			</script>           
	   <? }?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 运费承担：</td>
          <td colspan="2" class="td_03">
		    <input name="cTransportType" type="radio"  value="0"  <?=(!$rs['cTransportType']?'checked="checked" ':'')?>  onclick="ioc([],['dwNormalMailPrice','dwHomeMailPrice','dwExpressMailPrice'],1);"/>
            卖家承担运费
            <input name="cTransportType" type="radio"  value="1"  <?=($Pact != "modifyGoodsInfo" || $rs['cTransportType']?'checked="checked" ':'')?>  onclick="ioc(['dwNormalMailPrice','dwHomeMailPrice','dwExpressMailPrice'],[],1);" require="1"  msg="请选定商品的运费承担方式" >
            买家承担运费<br>
            郵寄：
            <input name="dwNormalMailPrice" type="text" class="ime" value="0.00"  size="10"  msg="平邮费用必须是0.01～1000000之间的数字；" datatype="nums" min="0.01" max="1000000">
            元 宅配：
            <input name="dwHomeMailPrice" type="text" class="ime" value="0.00"  size="10"   msg="宅配费用必须是0.01～1000000之间的数字；" datatype="nums" min="0.01" max="1000000">
            元 快遞：
            <input name="dwExpressMailPrice" type="text" class="ime" value="0.00" size="10"  msg="快递费用必须是0.01～1000000之间的数字；" datatype="nums" min="0.01" max="1000000">
            元<br>
          </td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				<?=($rs['cTransportType']?"ioc(['dwNormalMailPrice','dwHomeMailPrice','dwExpressMailPrice'],[],1);":"ioc([],['dwNormalMailPrice','dwHomeMailPrice','dwExpressMailPrice'],1);")?>
				Form.dwNormalMailPrice.value = <?=json::encode($rs["dwNormalMailPrice"])?>;
				Form.dwHomeMailPrice.value = <?=json::encode($rs["dwHomeMailPrice"])?>;
				Form.dwExpressMailPrice.value = <?=json::encode($rs["dwExpressMailPrice"])?>;
			});
			</script>           
	    <? }?>
		<? if($cSellType == 1){?>
        <tr>
          <td class="td_02"><span class="fontOrange">*</span> 一 口 价：</td>
          <td colspan="2" class="td_03"><input name="dwPrice_bin" type="text" class="ime" value="<?=$rs['dwPrice_bin']?>" size="10"  require = "1" datatype="nums" min="0.01" max="1000000" msg="[一口价] 金额必须是0.01～1000000之间的数字；">
            元</td>
        </tr>
		<? }elseif($cSellType == 2){?>
		<tr >
          <td class="td_02"><span class="fontOrange">*</span> 起 拍 价：</td>
          <td colspan="2" class="td_03"><input name="dwPrice_auc" type="text" class="ime" value="<?=$rs['dwPrice_auc']?>" id = "dwPrice_auc"   size="10"  require = "1" datatype="nums" msg="起拍价钱必须是数字,并且>=0.01，<=1000000" min="0.01" max="1000000" >
            元&nbsp;&nbsp;&nbsp;&nbsp; 起拍价就是您可以接受的最低价格，请谨慎设置。</td>
        </tr>
        <tr >
          <td class="td_02"><span class="fontOrange">*</span> 最低加价幅度：</td>
          <td colspan="2" class="td_03">
		    <input name="cPriceToAddType" type="radio"  value="0" <?=(!$rs['cPriceToAddType']?'checked="checked" ':'')?>  require = "1" msg="请选定加价类型" checked="checked" onclick="ioc([],['dwPriceToAdd'],1);">
            系统自动代理加价（推荐）<br>
            <input name="cPriceToAddType" type="radio"  value="1" <?=($rs['cPriceToAddType']?'checked="checked" ':'')?> onclick="ioc(['dwPriceToAdd'],[],1);" >
            自定义
            <input name="dwPriceToAdd" type="text" class="ime" value="" size="10"  datatype="nums" min="0.01" max="1000000"  msg="自定义最低加价幅度必须是数字,并且>=0.01 <=1000000"  >
            元<br>
            最低加价幅度就是竞拍者为了超越前一个人的出价在现有价格上加的金额。推荐您选择系统自动代理加价。</td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				<?=($rs['cPriceToAddType']?"ioc(['dwPriceToAdd'],[],1);":"ioc([],['dwPriceToAdd'],1);")?>
				Form.dwPriceToAdd.value = <?=json::encode($rs["dwPriceToAdd"])?>;
			});
			</script>           
	    <? }?>
		<? 
		/*
		<tr>
          <td class="td_02">设置抵押金：</td>
          <td colspan="2" class="td_03">
		    <input name="cGageMoney" type="radio" value="0" checked="checked"  onclick="ioc([],['dwForegift','dwPledgeStart'],1);" />
            无需抵押金
            <input name="cGageMoney" type="radio"  value="1"   onclick="ioc(['dwForegift','dwPledgeStart'],[],1);" />
            自定义
            <input type="text" name="dwForegift" class="ime" id="dwForegift"  value=""  size="10"  datatype="nums" msg="抵押金额必须是数字,并且>=0.01，<=10000" min="0.01" max="10000" />
            元 <span class="fontOrange">（普通商品拍卖最好无需抵押金）</span><br />
            <span id="show_foregift">抵押金生效的时间：当拍卖达到
            <input type="text" name="dwPledgeStart" value="" size="10"  datatype="nums" msg="生效金额必须是数字,并且>0，<=1000000" min="0.01" max="1000000"  />
            元时生效 <br />
            </span> </td>
        </tr>
		*/
		  }?>
        <tr id = "trOpNum">
          <td class="td_02">购买权限设置：</td>
          <td colspan="2" class="td_03">购买件数限制：
            <input name="dwOpNum" type="text" class="ime" id="dwOpNum" value="0" size="8"  require = "1" datatype="nums" msg="商品数量必须是数字">
            件<span id="buyerLimitErr" style="color:red"></span>&nbsp;&nbsp;&nbsp;&nbsp;同一买家购买该商品的数量上限（0件表示不限制）</td>
        </tr>
      </table>
      <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="140" class="td_01">其他商品信息</td>
          <td class="td_01">　</td>
        </tr>
        <tr>
          <td class="td_02">自动重发：</td>
          <td class="td_03"><input name="cAutoReload" type="checkbox" value="1" checked="checked">
            是，系统会帮您自动重发三次，到期未卖出的商品，您可以在仓库里找到并重新发布</td>
        </tr>
        <tr>
          <td class="td_02">颜色主题：</td>
          <td class="td_03">
          <select name="cPctStyle" id="cPctStyle" >
            <option value="0" selected="selected">默认风格</option>
            <option value="1" >紫色浪漫</option>
            <option value="2" >蓝色幻想</option>
            <option value="3" >粉色回忆</option>
            <option value="4" >自然印象</option>
            <option value="5" >金属狂潮</option>
          </select>
      	 </td>
        </tr>
        <? if($Pact == "modifyGoodsInfo")
		   {
		  ?>
			<script type="text/javascript">
			$(function(){
				Form.cPctStyle.value = <?=json::encode($rs["cPctStyle"])?>;
			});
			</script>           
	    <? }?>
      </table>
      
      <div id="submit">
	    <input type="submit" id="submitBtn" value=" 确认无误，提交>> " class="submitBtn"  onmouseover="this.className='submitBtnOver'" onmouseout="this.className='submitBtn'">
      </div>
    </form>
  </div>
</div>
<script type="text/javascript">
var Form = document['forms']['form1'];
<? if($Pact != "modifyGoodsInfo")
{
?>
	Init_upload();
	ioc(['gLocationExt_1'],['gLocationExt_2'],1);//地区
	//ioc([],['uploadDateExt'],1);//上加时间
	ioc([],['gBuyerLimitValue'],1);//買家資格限制
	ioc([],['gPayWayExt'],1);//付款方式
	ioc([],['gDeliverWayExt'],1);//交貨方式
	ioc(['dwNormalMailPrice','dwHomeMailPrice','dwExpressMailPrice'],[],1);//运费承担
	if(typeof Form.dwPriceToAdd != "undefined") ioc([],['dwPriceToAdd'],1);//最低加价幅度
	if(typeof Form.dwForegift != "undefined" && typeof Form.dwPledgeStart != "undefined") ioc([],['dwForegift','dwPledgeStart'],1);//设置抵押金
<? 
}?>
</script>
<? tpl::import('foot.tpl.php');?>
</body>
</html>